import request from "@/utils/request";

// 角色列表
export function upload(data) {
  return request({
    url: `/upload/file`,
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
}
export function uploadEditor(data) {
  return request({
    url: `/upload/editor`,
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
}
